package persentation.presentTeacher;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.SwingConstants;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Font;

public class ButtonPanel extends JPanel {
	

	/**
	 * Create the panel.
	 */
	private ImageIcon image;
	private JLabel imageLabel;
	private ImageIcon buttomBottom;
	private JLabel buttomBottomLabel;
	public ButtonPanel() {
		setSize(200, 663);
		setBackground(Color.WHITE);
		setLayout(null);
		
		buttomBottom=new ImageIcon("Graphics/teacherGraphics/buttonBottom.png");
		buttomBottomLabel=new JLabel(buttomBottom);
		buttomBottomLabel.setBounds(0, 0, 200, 610);
		add(buttomBottomLabel,-1);
		
		image=new ImageIcon("Graphics/teacherGraphics/AiYinSiTan.jpg");
		Image temp=image.getImage();
		temp=temp.getScaledInstance(200, 300, Image.SCALE_FAST);
		image=new ImageIcon(temp);
		imageLabel=new JLabel(new ImageIcon("Graphics/teacherGraphics/AiYinSiTan.jpg"));
		imageLabel.setVerticalAlignment(SwingConstants.BOTTOM);
		imageLabel.setBounds(new Rectangle(-24, 329, 258, 293));
		buttomBottomLabel.add(imageLabel);

		
		
		
	}
	
	public void setButtonBottom(JLabel label){
		label=this.buttomBottomLabel;
	}
	
	

}
